package org.example.sdpback.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.example.sdpback.sdk.response.SdpResponseData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "穿透测试")
@RestController
@RequestMapping("/test")
@RequiredArgsConstructor
public class TestController {


    @Operation(summary = "测试服务是否正常",description = "controller正常")
    @GetMapping("/server")
    public SdpResponseData<Object> server() {
        return SdpResponseData.success("test server running");
    }

    @Operation(summary = "测试返回数据",description = "返回正常")
    @GetMapping("/response")
    public SdpResponseData<Object> responseData() {
        return SdpResponseData.success();
    }
}
